<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Fuck XDD</title>
</head>
<body>
	<h1>Gestionar Materia</h1>
	<table border="1">
		<tbody>
			<s:iterator value="listMaterias" var="materia">
				<tr>
					<td>${materia.nombre}</td>
					<td>${materia.creditos}</td>
					<td>
						<a href="${pageContext.request.contextPath }/gestionar-materia/${materia.id}/edit">Modificar</a>
						<a href="${pageContext.request.contextPath }/gestionar-materia!deleteConfirm?idSel=${materia.id}">Eliminar</a>
					</td>
				</tr>
			</s:iterator>


		</tbody>

	</table>
	<a href="${pageContext.request.contextPath }/gestionar-materia/new">Agregar
		Materia</a>
		
		<a href="${pageContext.request.contextPath }/imprimir-reporte!Materia">Reporte</a>
</body>
</html>